package com.itzhihao.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

@TableName(value = "glgl_shopcart")
@Data
public class Cart extends BaseEntity {
    private static final long serialVersionUID = 1L;


    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "shopcart_id",type = IdType.ASSIGN_ID)
    private Long Id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "store_id")
    private Long storeId;

    @TableField(value = "product_id")
    private Long productId;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(value = "product_num")
    private Integer productNum;

    private Double price;
}
